package com.cwl.base.day02;

/**
 * @program: java_base
 * @description: 测试递归
 * @author: ChenWenLong
 * @create: 2019-11-06 14:13
 **/
public class TestRecursion01 {

    public static void main(String[] args) {
        a();
    }

    static  int  count = 0;
    static  void  a(){
        System.out.println("a");
        count++;
        if(count<10){
            a();
        }else{
            return;
        }

    }

    static  void  b(){
        System.out.println("b");
    }
}
